package cn.com.miao.lynx.common.base.mapping;

import cn.com.miao.lynx.common.base.model.BaseModel;

import java.io.Serializable;
import java.util.List;

/**
 * BaseMapStructMapping
 *
 * @title: BaseMapStructMapping
 * @description:
 * @author: dengmiao
 * @create: 2019-12-23 17:31
 **/
public interface BaseMapStructMapping<E extends BaseModel<ID>, ID extends Serializable> {

    <T> T to(E source, final Class<T> clazz);

    <T> List<T> to(List<E> source, final Class<T> clazz);
}
